<template>
  <GenericDetailPage :object.sync="AdhocDetail" :active-menu.sync="config.activeMenu" v-bind="config" v-on="$listeners">
    <keep-alive>
      <component :is="config.activeMenu" :object="AdhocDetail" />
    </keep-alive>
  </GenericDetailPage>
</template>

<script>
import { GenericDetailPage, TabPage } from '@/layout/components'
import AdhocExecutionHistory from './AdhocExecutionHistory'
import AdhocDetail from './AdhocDetail'

export default {
  components: {
    GenericDetailPage,
    AdhocExecutionHistory,
    AdhocDetail,
    TabPage
  },
  data() {
    return {
      AdhocDetail: {},
      config: {
        activeMenu: 'AdhocDetail',
        title: this.$t('ops.taskDetail'),
        submenu: [
          {
            title: this.$t('ops.versionDetail'),
            name: 'AdhocDetail'
          },
          {
            title: this.$t('ops.versionRunExecution'),
            name: 'AdhocExecutionHistory'
          }
        ],
        hasRightSide: false
      }
    }
  }
}
</script>

<style scoped>

</style>
